//
//  UIImageView+Category.m
//  KeleAppProject
//
//  Created by Cen Zhou on 2018/1/10.
//  Copyright © 2018年 Cen Zhou. All rights reserved.
//

#import "UIImageView+Category.h"

@implementation UIImageView (Category)


// 设置圆角
- (void)setRadiusWithValue:(NSInteger)value{
    UIBezierPath* path = [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:value];
    CAShapeLayer* shape = [CAShapeLayer new];
    shape.path = path.CGPath;
    self.layer.mask = shape;
}

@end
